<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <link rel="stylesheet" href="assets/mui/css/mui.min.css">
    <link rel="stylesheet" href="assets/mui/css/iconfont.css">
    <link rel="stylesheet" href="css/base.css">
    <link rel="stylesheet" href="css/cart.css">
    <script src="assets/zepto/zepto.min.js"></script>
    <script src="assets/mui/js/mui.min.js"></script>
    <script src="assets/artTemplate/template-native.js"></script>
    <script src="js/common.js"></script>
    <script src="js/cart.js"></script>
    <style>
        .active {
            background: #ea581d;
            color: #fff;
        }
    </style>
</head>

<body>
    <header class="mui-bar mui-bar-nav header">
        <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
        <h1 class="mui-title">购物车</h1>
        <a class="mui-icon mui-icon-reload mui-pull-right"></a>
    </header>
    <nav class="mui-bar mui-bar-tab footer">
        <a class="mui-tab-item" href="index.html">
            <span class="mui-icon mui-icon-home"></span>
            <span class="mui-tab-label">首页</span>
        </a>
        <a class="mui-tab-item" href="category.html">
            <span class="mui-icon mui-icon-bars"></span>
            <span class="mui-tab-label">分类</span>
        </a>
        <a class="mui-tab-item mui-active" href="cart.html">
            <span class="mui-icon iconfont icon-gouwuche"></span>
            <span class="mui-tab-label">购物车</span>
        </a>
        <a class="mui-tab-item" href="user.html">
            <span class="mui-icon mui-icon-person"></span>
            <span class="mui-tab-label">会员中心</span>
        </a>
    </nav>
    <div class="mui-content">
        <ul class="mui-table-view" id="address-box">

        </ul>
        <div class="btns">
            <a href="javascript:;">删除所选商品</a>
            <span class="car">购买所选商品</span>
        </div>
    </div>
    <script type="text/template" id="priceTpl">
        <%for(var i =0;i<data.length;i++){ %>
            <li class="mui-table-view-cell mui-transitioning">
                <div class="mui-slider-right mui-disabled">
                    <span class="mui-btn mui-btn-primary editBtn" data-id="<%=data[i].id %>">编辑</span>
                    <span class="mui-btn mui-btn-red deleteBtn" data-id="<%=data[i].id %>">删除</span>
                </div>
                <div class="mui-slider-handle">
                    <a href="javascript:;">
                        <img class="mui-media-object mui-pull-left" src="<%=data[i].pic[0].picAddr %>">
                        <div class="mui-media-body">
                            <p>
                                <%=data[i].proName%>
                            </p>
                            <div class="mui-row">
                                <div class="mui-col-sm-6">
                                    <input type="checkbox">
                                    <span class="price-1">¥<%=data[i].price %></span>
                                    <span class="price-2 gray">¥<%=data[i].oldPrice %></span>
                                </div>
                                <div class="mui-col-sm-4">
                                    <span class="gray">鞋码：<%=data[i].size %></span>
                                </div>
                                <div class="mui-col-sm-2">
                                    <span class="gray">库存：x<%=data[i].num %>双</span>
                                </div>
                            </div>
                        </div>
                    </a>
                </div>
            </li>
            <% } %>
    </script>
    <script id="detailTpl" type="text/html">
        <div class="detail-size">
            尺码：
            <% for(var i=0;i<data.arr.length;i++){ %>
                <span class="<%=data.size==data.arr[i]?'active':''%>"><%=data.arr[i] %></span>
                <% } %>
        </div>
        <div class="detail-num">
            数量：<span class="reduce">-</span><input type="text" value="1" class="num"><span class="plus">+</span>
        </div>
    </script>
</body>

</html>